﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ColdStorage.DOL
{
    class Room
    {
        
        
        double dbroomLadingCoefficient;
        double dbroomLength;
        double dbroomWidth;
        double dbroomHeight;
        double dbroomCapacity;
        int iroomType;

        


        public double dbRoomLadingCoefficient
        {
            get { return dbroomLadingCoefficient; }
            set { dbroomLadingCoefficient = value; }
        }        
        public double dbRoomLength
        {
            get { return dbroomLength; }
            set { dbroomLength = value; }
        }
        
        public double dbRoomWidth
        {
            get { return dbroomWidth; }
            set { dbroomWidth = value; }
        }
        
        public double dbRoomHeight
        {
            get { return dbroomHeight; }
            set { dbroomHeight = value; }
        }
        
        public double dbRoomCapacity
        {
            get { return dbroomCapacity; }
            set { dbroomCapacity = value; }
        }
        public int iRoomType
        {
            get { return iroomType; }
            set { iroomType = value; }
        }
        

        
      

       
        //Tính thể tích kho lạnh
        public double CalculateRoomVolume()
        {
            return dbroomHeight * dbroomWidth * dbroomLength;
        }

        //Tính diện tích kho lạnh
        public double CalculateRoomArea()
        {
            return dbroomLength * dbroomWidth;
        }

        //Tính dung tích kho lạnh
        public double CalculateRoomCapacity()
        {
            return CalculateRoomVolume() * dbroomLadingCoefficient;
        }
        public double CalculateVolume(double Length, double Width, double Height)
        {
            return Length * Width * Height;
        }

      //  public double HeatSum()
        //{
          //  double dbr = p.CalculateProductHeat(iCapacityRoom) + p.CalculateProductRespiratory(iCapacityRoom) + p.Calculatewrappingheat(dbTempOutside, dbTempInside);
            //return;
        //}
    }
}
